<?php
/**
 * 轻云网络验证系统
 * =======================================================
 * 版权所有(C) 2019-2039 daenx.cn，并保留所有权利。
 * 作者：Daen大恩
 * 作者QQ: 1330166565
 * 开发群：661059773
 * =======================================================
 */


//判断是否已安装
if(!is_file("./install/lock") && is_file("./install/index.php")){
	@header("location:install/index.php");
}
include 'data/weby.php';
?>
<?php
include 'head.php';
?>
<title>卡密购买 - <?php echo $title;?></title>
 <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link href="static/css/music.css" rel="stylesheet">
<link href="static/css/bootstrap.min.css" rel="stylesheet">
<link href="static/css/animate.min.css" rel="stylesheet">
<link href="static/css/font-awesome.min.css" rel="stylesheet">
<link href="static/css/form.css" rel="stylesheet">
<link href="static/css/calendar.css" rel="stylesheet">
<link href="static/css/file-manager.css" rel="stylesheet">
<link href="static/css/style.css" rel="stylesheet">
<link href="static/css/icons.css" rel="stylesheet">
<link href="static/css/generics.css" rel="stylesheet">
<link rel="shortcut icon" href="<?php echo $route?>img/LightCloud.png" type="image/x-icon" />
<STYLE>.loginscreen.middle-box{width:300px;}.middle-box{max-width:400px;z-index:100;margin:0 auto;padding-top:100px;}</STYLE>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?0de8a795db3f2bcc6c9c374ab7468d22";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body id="skin-blur-violate">
<section class="middle-box " align="center">
<div class="tile p-15">
<div class="container">
<img id="btnAudio" class="profile-pic animated" src="http://q.qlogo.cn/headimg_dl?bs=qq&dst_uin=<?php echo $kfqq; ?>&fid=blog&spec=100" alt="">
<form action="?" method="get">
<input type="hidden" name="do" value="do">
<div class="form-group">
<section id="main">
<label for="exampleInputEmail1">请选择购买渠道 (代理渠道的价格可能会比官方便宜)</label>
<br>
<select name="tzurl" class="form-control" id="daili">
								<option value='<?php echo $website; ?>'>官方渠道 √</option>
 									<?php 
										$sql="select * from daili ORDER BY `id` DESC";
										$result=mysqli_query($con,$sql);
										if($result&&mysqli_num_rows($result)){
											while ($row=mysqli_fetch_assoc($result)) {
												if($row['yumi']==0){
												echo "<option value='".$row['url']."'>".$row['dl']."  QQ:".$row['qq']."</option>";	}										
											}
										}
									?>   
</select>
<br>
</div>
<div class="form-group">

<label for="exampleInputPassword1">
</label>
</div>

<div class="fileupload fileupload-new" data-provides="fileupload">
<a data-toggle="modal" href="<?php echo $website; ?>" class="btn btn-block btn-alt" id="jinru">进入购买</a>

<script>
function fuzhi(event){
    var e=event||window.event;
    var obj=e.srcelement?e.srcelement:e.target;
    var daili=obj.options[obj.selectedIndex].value;
    jinru.href = daili;
}
window.onload=function(){
    var obj=document.getElementById('daili');
    obj.onchange=fuzhi;
}
</script>

</div>
<a data-toggle="modal" href="/index.php" class="btn btn-sm m-t-10">查询授权</a>
<a data-toggle="modal" href="/get" class="btn btn-sm m-t-10">更换授权</a>
<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $kfqq; ?>&amp;site=qq&amp;menu=yes" target="_blank" class="btn btn-sm m-t-10">联系客服</a>
<a data-toggle="modal" href="/buy.php" class="btn btn-sm m-t-10">自助授权</a>
</form>
</div>

<!--<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=335 height=210 src="//music.163.com/outchain/player?type=0&id=982689732&auto=0&height=430"></iframe>--> 

<script src="get/qrlogin.js"></script>
<script src="static/js/jquery.min.js"></script>  
<script src="static/js/jquery-ui.min.js"></script>  
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/scroll.min.js"></script>  
<script src="static/js/calendar.min.js"></script>  
<script src="static/js/feeds.min.js"></script>  
<script src="static/js/elfinder.min.js"></script>  
<script src="static/js/music.js"></script>
<script type="text/javascript">
            $(document).ready(function() {
                 $('#fileManager').elfinder({
                      resizable: false,
                      url : 'php/connector.minimal.php',  // connector URL (REQUIRED)
                      uiOptions : {
                      toolbar : [
                              ['back', 'forward', 'home', 'reload'],
                              ['mkdir', 'mkfile', 'upload'],
                              ['view', 'sort'],
                              ['search']
                      ]},
                      height: 500
                 });
                 
                 $('.elfinder-cwd-wrapper, .elfinder-navbar').niceScroll();
            });
</script>
</body>
</html>